﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Xna.Framework;

namespace BlobTowerDefense.Game_Entities
{
    /// <summary>
    /// Trida uchovavajici dulezita data o hraci
    /// </summary>
    class Player
    {
        private int lives;  //pocet zivotu hrace
        private int money;  //pocet penez hrace
        private int level;  //aktualni level
        private int round;  //aktualni kolo
        bool specialWeapon;  //pomocna promenna, rozhoduje zda je mozne pouzit opet specialni zbran

        /// <summary>
        /// Konstruktor tridy Player
        /// </summary>
        /// <param name="lives">Pocetatecni pocet zivotu hrace</param>
        /// <param name="money">Pocatecni pocet penez hrace</param>
        public Player(int lives, int money)
        {
            //inicializace hodnot
            this.lives = lives;
            this.money = money;
            this.level = 1;
            this.round = 1;
            this.specialWeapon = true;
        }

        /// <summary>
        /// Pomoci teto property se nastavuje a cte pocet zivotu hrace
        /// </summary>
        public int Lives
        {
            get { return lives; }
            set { lives = value; }
        }

        /// <summary>
        /// Pomoci teto property se nastavuje a cte pocet penez hrace
        /// </summary>
        public int Money
        {
            get { return money; }
            set { money = value; }
        }

        /// <summary>
        /// Pomoci teto property se nastavuje a cte aktualni level
        /// </summary>
        public int Level
        {
            get { return level; }
            set { level = value; }
        }

        /// <summary>
        /// Pomoci teto property se nastavuje a cte aktualni kolo hrace
        /// </summary>
        public int Round
        {
            get { return round; }
            set { round = value; }
        }

        /// <summary>
        /// Pomoci teto property se nastavuje a cte zda ma hrac moznost vyuzit specialni zbran
        /// </summary>
        public bool SpecialWeapon
        {
            get { return specialWeapon; }
            set { specialWeapon = value; }
        }

    }
}
